package  
{
	import com.sailorless.luna.GameTime;
	import com.sailorless.luna.graphics.Texture2D;
	import com.sailorless.luna.Luna;
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.geom.Point;
	
	/**
	 * ...
	 * @author Herbs
	 */
	public class MyGame extends Luna 
	{
		[Embed(source = "../lib/image.png")]
		public static var ref:Class;
		
		private var texture2d:Texture2D;
		private var x:int = 0;
		private var y:int = 0;
		
		public function MyGame() 
		{
			var bmpd:BitmapData = Bitmap(new ref()).bitmapData;
			texture2d = new Texture2D(bmpd);
			
		}
		
		override protected function update(gameTime:GameTime):void 
		{
			spriteBitch.draw(texture2d, new Point(x += 4, y += 3), true);
		}
		
	}

}